package kr.co.hanbit;

public class car {
	
	String color;
	String gear;
	int door;
	
	
	public car(){
		
	}
	
	public car (String c, String g , int d){
		
		
		color = c;
		gear = g;
		door = d;
		
		}
		
		public  void opcar() {
			System.out.println(color);
			System.out.println(gear);
			System.out.println(door);
			
		}
		car (car c) {
			
			color = c.color;
			gear = c.gear;
			door = c.door;
			
		}
		
		public static void main(String[] args) {
			car car = new car("green","auto",4);
			car.opcar(); 
		}
	}


